package com.xcdh.ittools.service.impl;

import com.api.ittools.entity.ITToolPage;
import com.api.ittools.entity.ToolDict;
import com.api.ittools.vo.ElDictTreeVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.api.ittools.entity.ToolDictItem;
import com.xcdh.ittools.mapper.ToolDictMapper;
import com.xcdh.ittools.service.ToolDictService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class ToolDictServiceImpl extends ServiceImpl<ToolDictMapper, ToolDict> implements ToolDictService {
    @Autowired
    private ToolDictMapper dictMapper ;

    @Override
    public IPage<ElDictTreeVo> dictTreeList(ITToolPage<ToolDictItem> toolPage) {
        return dictMapper.dictTreeList(toolPage ,toolPage.getQuery());
    }
}
